<?php

require ('template.php');

if (($_GET['page'] == "home") OR (($_GET['page'] == ""))){
	$title = "Beranda";
} elseif ($_GET['page'] == "map") {
	$title = "Peta";
} elseif ($_GET['page'] == "bukutamu") {
	$title = "Buku Tamu";
}

getMeta($title);

if ($_GET['page'] == "map") {

	$html .= '<body onload="peta_awal()">';

} else {

	$html .= '<body>';

}

echo $html;

?>

<div id="wrapper">

	<div id="header-wrapper">

		<div id="header" class="container">

			<?php getHeader(); ?>

			<?php getMenu(); ?>

		</div>

	</div>

	<div id="page" class="container">
		<?php 
		if ($_GET['page'] == "map") {
			echo "";
		} else {
			getSlideShow();
		}
		require ('page.php'); 
		
		if ($_GET['page'] == "map") {
			echo "";
		} else {
			getSideBar(); 
		}
				?>
	</div>

</div>

<?php getJS(); ?>

<?php getFooter(); ?>

